package org.seckill.dao;

/**
 * Created by Administrator on 2017/3/30.
 */
import org.apache.ibatis.annotations.Param;
import org.seckill.entity.SuccessKilled;

import javax.annotation.Resource;


public interface SuccessKilledDao {

    //插入购买明细,返回插入行数  0：表示插入失败
    int insertSuccessKilled(@Param("seckillId") long seckillId, @Param("userPhone")long userPhone);

    //根据Id查询SuccessKilled并携带秒杀对象
    SuccessKilled queryByIdWithSeckill(@Param("seckillId")long seckillId,@Param("userphone")long userphone);

}
